package org.lanqiao.tjut.dao.impl;

import java.util.List;

import org.lanqiao.tjut.bean.UserEntity;
import org.lanqiao.tjut.dao.IUserInfoDao;
import org.lanqiao.tjut.mapper.UserEntityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("UserInfoDao")
public class UserInfoDao implements IUserInfoDao {

	@Autowired
	private UserEntityMapper userMapper;

	@Override
	public List<UserEntity> selectAllUserInfo() {

		List<UserEntity> lstUser = userMapper.selectUsersInfoList();

		return lstUser;
	}

	@Override
	public int insertUsersInfo(UserEntity userE) {
		int i = userMapper.insertUsersInfo(userE);
		return i;
	}

	@Override
	public int deleteUsersInfo(UserEntity userE) {
		int i = userMapper.deleteUsersInfo(userE);
		return i;
	}

	@Override
	public int updateUsersInfo(UserEntity userE) {
		int i = userMapper.updateUsersInfo(userE);
		return i;
	}
}
